package com.example.auth.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: LiYang
 * @create: 2023-07-10 15:52
 * @Description:
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
public class LyException extends RuntimeException {
    private Integer code;
    private String msg;


    public LyException(String msg) {
        this.code = 20001;
        this.msg = msg;
    }
    public LyException(Integer code,String msg) {
        this.code = code;
        this.msg = msg;
    }

}
